LDFLAGS=-T ldscript
ASMFLAGS=-f aout -o

all: kernel

kernel: main.o
	ld $(LDFLAGS) -o kernel @ofiles -M > ksymmap

main.o: main.asm
	nasmw $(ASMFLAGS) main.o main.asm
